package edu.cuit.canary.feign.client;

import edu.cuit.canary.feign.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-service")
public interface UserClient {
    @GetMapping("/users/{id}")
    User searchUserById(@PathVariable Integer id);
}
